package cn.zjyj.module.zjyj.controller.admin.risksample.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 风险样本新增/修改 Request VO")
@Data
public class RiskSampleSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15544")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "风险类型（1:作业类，2:设备类，3:环境类，4公共类）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "风险类型（1:作业类，2:设备类，3:环境类，4公共类）不能为空")
    private Integer riskType;

    @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotEmpty(message = "描述不能为空")
    private String description;

    @Schema(description = "风险详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "风险详情不能为空")
    private JSONArray riskDetail = new JSONArray();

}